#!/bin/sh

exepath=$(which grpc_cpp_plugin)
if [ -f "$exepath.exe" ]; then
	exepath=$exepath".exe"
fi

rm -f ../proto/*

protoc -I=. --grpc_out=../proto --plugin=protoc-gen-grpc=$exepath ./rpc.proto
protoc -I=. --cpp_out=../proto ./*.proto